{% extends 'base.html' %}

{% block js %}
<script>
    function open_sys_notice(){
        $('#sys_notice').show()
    }
    function close_sys_notice(){
        $('#sys_notice').hide()
    }
</script>
{% endblock %}

{% block content %}
      <div class="center_div">
          <a style="color: red">+系统消息:</a>&nbsp;&nbsp;<a onclick="open_sys_notice()">{{ system_notice.title }}</a>
          <div hidden id="sys_notice">
              <p>
                  {{ system_notice.content }}
                  <br>
                  <center><a onclick="close_sys_notice()">关闭</a></center>
              </p>
          </div>
          <br><br>
          话题:<br>
            {% for tag in tags %}
                [{{ tag.title }}]&nbsp;<a href="/post/list?tag_id={{ tag.id }}">更多</a>
                <br>
                {% for post in tag.posts %}
                    &nbsp;&nbsp;&nbsp;<a href="/post/detail?post_id={{ post.id }}">{{ post.title }}</a><br>
                {% endfor %}
                <br>
            {% endfor %}
            <br>
      </div>
{% endblock %}